package com.rayc.mall.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.time.Duration;

/**
 * @Author: Ray-C
 * @CreateTime: 2025-03-23
 * @Description: jwt配置信息
 * @Version: 1.0
 */
@Data
@Component
@ConfigurationProperties(prefix = "mall.jwt")
public class JwtProperties {
    private String secret;
    private Duration tokenTTL = Duration.ofMinutes(10);
}
